package controlLayer;



import static org.junit.Assert.*;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;

/**
 * The test class PersonCtrTest.
 *
 * @author  (your name)
 * @version (a version number or a date)
 */
public class PersonCtrTest
{
    private controlLayer.PersonCtr personCt1;

    /**
     * Default constructor for test class PersonCtrTest
     */
    public PersonCtrTest()
    {
    }

    /**
     * Sets up the test fixture.
     *
     * Called before every test case method.
     */
    @Before
    public void setUp()
    {
        personCt1 = new controlLayer.PersonCtr();
        personCt1.updatePerson(1, "Jane", "Aalborg South", "900", "Aalborg", "100");
    }

    /**
     * Tears down the test fixture.
     *
     * Called after every test case method.
     */
    @After
    public void tearDown()
    {
    }


   

    @Test
    public void testPerson()
    {
        personCt1.createPerson("Jane", "Aalborg South", "900", "Aalborg", "100");
    }

    @Test
    public void testUpdate()
    {
        personCt1.updatePerson(1, "Jane", "Aalborg South", "900", "Aalborg", "100");
    }

    @Test
    public void testDelete()
    {
        personCt1.deletePerson(1);
    }
}







